package com.atguigu.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author liking
 * @Description
 * @Date 2025/4/23
 * @Version 1.0
 */
@RestController
@Slf4j
@RequestMapping("/yaml")
public class GetYamlInfoController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/info")
    public String getYamlInfo(@Value("${lijing.info}") String info) {
        log.info("port:{},lijingInfo:{}", port,info);
        return "port: " + port + ",lijingInfo: " + info;
    }
}
